package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2022-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_manage_header_rate")
public class ManageHeaderRateDo extends Model<ManageHeaderRateDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 柜号id 或者 billId 当type = bill 时记录billId
     */
    @TableField("header_id")
    private Long headerId;

    @TableField("jpy_rate")
    private Double jpyRate;

    @TableField("usd_rate")
    private Double usdRate;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    /**
     * header || endBill || bill(柜子和账单多对一,记录billId)
     */
    @TableField("type")
    private String type;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
